package com.dhj.yygh.client;

import com.dhj.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-user") // 调用 service-user 微服务
@Service
public interface UserClient {

    /**
     * 根据就诊人 id 获取就诊人信息
     *
     * @param id 就诊人 id
     * @return 返回就诊人对象
     */
    @GetMapping("/admin/user/getPatientById/{id}")
    Patient getPatientById(@PathVariable("id") Long id);
}
